﻿<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Confiture - Gestion de conférences</title>
        <link href="<?php echo css_url('reset'); ?>" rel="stylesheet" type="text/css" media="all" />
        <link href="<?php echo css_url('typography'); ?>" rel="stylesheet" type="text/css" media="all" />
        <link href="<?php echo css_url('main'); ?>" rel="stylesheet" type="text/css" />
        <!--[if lte IE 6]>
        <style type="text/css">
        .clearfix {height: 1%;}
        img {border: none;}
        #resol {position:absolute;} body {overflow-x: hidden;} 
        </style>
        <![endif]-->
        <!--[if gte IE 7.0]>
        <style type="text/css">
        .clearfix {display: inline-block;}
        </style>
        <![endif]-->
    </head>
    <body>
        <div id="mainwrap">
            <div id="header-wrap" class="wrap">
	            <div id="header" class="pagesize">
                    <h1 id="logo"><a href="<?php echo site_url('accueil'); ?>">Confiture - Gestion de conférences</a></h1>
                </div>
            </div>
            <div id="mainnav-wrap" class="wrap">
                <div id="mainnav" class="pagesize clearfix">
                    <div class="vernav">
                        <ul class="clearfix">
<?php
if($param['connecte'])
{
	$pageList = array('accueil' => 'Accueil',
							 'conferences' => 'Conférences',
							 'forum' => 'Forum',
							 'deconnexion' => 'Déconnexion'
							);
}
else
{
	$pageList = array('accueil' => 'Accueil',
							'conferences' => 'Conférences',
							'forum' => 'Forum',
							'connexion' => 'Connexion',
							'inscription' => 'Inscription'
							);
}
foreach($pageList as $pageName => $pageTitle)
{
    echo "                            ";
    if($pageName == $page)
    {
        echo '<li><a href="' . site_url($pageName) . '" id="active"><span>' . $pageTitle . '</span></a></li>';
    }
    else
    {
        echo '<li><a href="' . site_url($pageName) . '"><span>' . $pageTitle . '</span></a></li>';
    }
    echo "\n";
}
?>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="container-wrap" class="wrap">
                <div id="container" class="pagesize clearfix">
                	<div id="leftcol">
                    	<div class="inner">
                        	<p></p>
                        </div>
                    </div>
                    <div id="maincol">
                    	<div id="banner" class="clearfix">
                        	<div id="banner-content">
                            	<h1>Gestion de conférences<br />en ligne</h1>
                            </div>
                        </div>
                        <div id="content-wrap">
                        	<div id="content" class="clearfix">
                            	<?php $this->load->view($page, $param); ?>
                            </div>
                        </div>
                        <div id="footer">
                        	Site réalisé dans le cadre d'un projet de DUT informatique à l'IUT de Caen.<br />
                        </div>
                    </div>
                    <div id="rightcol">
                    	<div class="inner">
                        	<p>
<?php
if($param['connecte'])
{
    echo $param['prenom'] . ' ' . $param['nom'] . '<br />' . $param['courriel'];
}
?>
                        	</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
